<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<link type="text/css" href="/css/1pxtable.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script>
function ischeck(){
	var inv =  $("#invoice").val();
	if(inv.length >= 8 ){
		$("#submit").prop('disabled', false);
	}else{
		$("#submit").prop('disabled', true);
	}
}
</script>
</head>
<body>
 <form id="form1" name="form1" method="post" action="">
 <h3>Refund for Job <?php echo $this->idJob?></h3>
<table width="400" border="1" cellspacing="1" cellpadding="10">

  <tr>
    <td>Staff Attendance Password:</td>
    <td><input type="password" name="password" id="password" /></td>
  </tr>
  <tr>
    <td>Refund APOS Invoice* (Lxxxx)</td>
    <td><input type = "text" name = "invoice" id = "invoice" onchange = "ischeck()"></input></td>
  </tr>
  <tr>
    <td colspan = "2"><input type="submit" name="submit" id="submit" value="Submit" disabled/></td>
  </tr>

</table>
  </form>

</body>
</html>